<template>
  <el-button @click="btn1" type="primary">发送请求</el-button>
  <el-button @click="btn2" type="primary">取消请求</el-button>
</template>

<script setup>
import { ddq, cancelRequest } from "@/api/index.js";

const btn1 = async () => {
  const data = await ddq();
  console.log(1, data);
};

const btn2 = () => {
  cancelRequest();
};
</script>

<style scoped lang="less"></style>
